import type { AppRouteModule } from '/@/router/types'

import { LAYOUT } from '/@/router/constant'
import { t } from '/@/hooks/web/useI18n'

const console: AppRouteModule = {
  path: '/console',
  name: 'Console',
  component: LAYOUT,
  redirect: '/console/core-network',
  meta: {
    icon: 'ion:desktop-outline',
    title: t('routes.dashboard.console'),
    orderNo: 2,
  },
  children: [
    {
      path: 'core-network',
      name: 'CoreNetwork',
      component: () => import('/@/views/console/coreNetwork/coreNetWork.vue'),
      meta: {
        title: t('routes.dashboard.coreNetwork'),
      },
    },
    {
      path: 'blockchain',
      name: 'Blockchain',
      component: () => import('/@/views/console/blockchain/index.vue'),
      meta: {
        title: t('routes.dashboard.blockchain'),
      },
    },
  ],
}

export default console
